package com.zhou.uploadServer.service;

import com.zhou.uploadServer.model.FileUpload;
import com.zhou.uploadServer.resp.FileUploadResp;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName: FileUploadService
 * @Description:
 * @Author: admin
 * @Date: 2021/12/22 21:35
 */
public interface FileUploadService {
    FileUpload fileUpload(MultipartFile file);

    @Transactional
    void ins(FileUpload fileUpload);

    FileUploadResp getFileData(String fileName);
}
